﻿package plugin.active
{
    import com.core.*;

    public class ActiveControl extends Control
    {

        public function ActiveControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "active")
            {
                if (param2.property == "getAct")
                {
                    this.target.showMsg(param2.newvalue);
                }
                else if (param2.property == "completeAct")
                {
                    this.target.completeAct(param2.newvalue);
                }
                else if (param2.property == "getReward")
                {
                    this.target.getReward(param2.newvalue);
                }
                else if (param2.property == "qiandao")
                {
                    this.target.qiandao();
                }
                else if (param2.property == "updatelevel")
                {
                    this.target.updatelevel();
                }
            }
            return;
        }// end function

    }
}
